import http from '@/utils/http.js';

export default {
	// 数据列表
	sysNoticeListApi: data => {
		return http.post('/sysNotice/list', data);
	},
	// 添加数据
	sysNoticeInsertApi: data => {
		return http.post('/sysNotice/insert', data);
	},
	// 更新数据
	sysNoticeUpdateApi: data => {
		return http.post('/sysNotice/update', data);
	},
	// 通过id获取详情
	sysNoticeDetailApi: params => {
		return http.get('/sysNotice/detail', { params });
	},
	// 通过id批量删除数据
	sysNoticeDeleteByIdApi: data => {
		return http.post('/sysNotice/deleteById', data, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });
	},
	// 通过名称批量添加数据
	sysBashInsertByNamesApi: data => {
		return http.post('/sysNotice/bashInsertByNames', data);
	},
};
